Union of two numbers using Python